const baseUrl =  "http://119.3.174.206:3000/"
export const http = (options)=>{
	return new Promise (function(resolve, reject){
		uni.request({
			url: baseUrl+options.url,
			method: options.method || 'GET',
			data: options.data || {},
			dataType: options.dataType || String,
			success: res=> resolve(res.data),
			fail: err => reject(err)
		})
	})
}